#ifndef MYLABEL_H
#define MYLABEL_H

#include <QLabel>

class myLabel : public QLabel
{
    Q_OBJECT
public:
    explicit myLabel(QWidget *parent = nullptr);

signals:

protected:
    // 鼠标进入事件
    void enterEvent(QEvent *event) Q_DECL_OVERRIDE;

    // 鼠标离开事件
    void leaveEvent(QEvent *event) Q_DECL_OVERRIDE;

    // 鼠标按下
    void mousePressEvent(QMouseEvent *ev) Q_DECL_OVERRIDE;

    // 鼠标释放
    void mouseReleaseEvent(QMouseEvent *ev) Q_DECL_OVERRIDE;

    // 鼠标移动
    void mouseMoveEvent(QMouseEvent *ev) Q_DECL_OVERRIDE;
};

#endif // MYLABEL_H
